// 时间戳转换过滤器
export function formatTimestamp(timestamp) {
  if (!timestamp) return ''
  const date = new Date(timestamp);
  const year = date.getFullYear();
  const month = (date.getMonth() + 1).toString().padStart(2, '0');
  const day = date.getDate().toString().padStart(2, '0');
  const hours = date.getHours().toString().padStart(2, '0');
  const minutes = date.getMinutes().toString().padStart(2, '0');
  return `${year}/${month}/${day} ${hours}:${minutes}`;
}

export function carryListStatus(status) {
  // if (!status) return ''
  let str = ''
	if(status == 0) {
		str = '待发货'
	}else if(status == 1) {
		str = '待收货'
	}else if(status == 2) {
		str = '已完成'
	}else {
		str = '已关闭'
	}
  return str;
}